import axios, { request, get, post } from '@/utils/request'
import { Axios, AxiosPromise } from 'axios';

// 示例接口
export const testGet = (params: LooseObject): AxiosPromise<HttpResponse> => get('/web/test/api', params, {
  loading: true, // 展示loading
});

// 登录
export const loginApi = (data: any): AxiosPromise => axios.post('', data) // 登入
export const loginOutApi = (): AxiosPromise => axios.post('') // 登出
export const changePsdApi = (): AxiosPromise => axios.post('') // 修改密码
